<!-- Welcome -->
<template>
	<div class="Welcome">
		<h1>Welcome,my world!!!</h1>
	</div>
</template>

<script>
//import <组件名称> from '<组件路径>';

export default {
	//注册import导入的组件
	components: {},
	//数据
	data() {
		return {};
	},
	//计算属性
	computed: {},
	//侦听器
	watch: {
		$route(to) {
			if (to.path == '/admin/welcome') {
				if (this.$refs.menu) return;
				const activeEl = this.$refs.menu.$el.querySelector('.el-menu-item.is-active');
				if (activeEl) {
					activeEl.style.color = '#fff';
				}
			}
		},
	},
	//方法
	methods: {},
	mounted() {},
};
</script>
<style></style>
